"""add stock field

Revision ID: f301db6b26a9
Revises: c9f00094ec56
Create Date: 2025-07-06 12:02:15.353382

"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = 'f301db6b26a9'
down_revision: Union[str, Sequence[str], None] = 'c9f00094ec56'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    """Upgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('seckill', sa.Column('stock', sa.Integer(), nullable=True, comment='库存量'))
    # ### end Alembic commands ###


def downgrade() -> None:
    """Downgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('seckill', 'stock')
    # ### end Alembic commands ###
